import http from './api'


const get = (url, params) => {
    return http({
        url,
        method: 'get',
        params
    })
}

const post = (url, data) => {
    return http({
        url,
        method: 'post',
        data
    })
}

export default {
    get, post
}